import request from '../utils/request';
const api = {
  //修改密码
  UpdateSystemUserPassWord(data?: any) {
    return request({
      url: '/api/SystemManage/UpdateSystemUserPassWord',
      method: 'post',
      data,
    });
  },
  //执行管理人员登录操作
  ExcuteAdminLogin(data?: any) {
    return request({
      url: '/api/SystemManage/ExcuteAdminLogin',
      method: 'post',
      data,
    });
  },
  //获得当前登录的操作人员相关数据
  GetLoginedOperatorData(data?: any) {
    return request({
      url: '/api/SystemManage/GetLoginedOperatorData',
      method: 'post',
      data,
      isRepeat: true,
    });
  },
  //获得匹配的系统角色数据列表
  QueryMatchSystemRoleDataList(data?: any) {
    return request({
      url: '/api/SystemManage/QueryMatchSystemRoleDataList',
      method: 'post',
      data,
    });
  },
  //获得某个系统角色下匹配的管理人员数据列表
  QueryMatchSystemUserDataList(data?: any) {
    return request({
      url: '/api/SystemManage/QueryMatchSystemUserDataList',
      method: 'post',
      data,
    });
  },
  //新增系统角色
  AddSystemRole(data?: any) {
    return request({
      url: '/api/SystemManage/AddSystemRole',
      method: 'post',
      data,
    });
  },
  //修改系统角色
  UpdateSystemRole(data?: any) {
    return request({
      url: '/api/SystemManage/UpdateSystemRole',
      method: 'post',
      data,
    });
  },
  //删除系统角色
  DeleteSystemRole(data?: any) {
    return request({
      url: '/api/SystemManage/DeleteSystemRole',
      method: 'post',
      data,
    });
  },
  //批量修改管理人员角色
  BatchChangeUsersRole(data?: any) {
    return request({
      url: '/api/SystemManage/BatchChangeUsersRole',
      method: 'post',
      data,
    });
  },
  //获取角色特殊权限
  GetSpecificPermissionByRoleCode(data?: any) {
    return request({
      url: '/api/SystemManage/GetSpecificPermissionByRoleCode',
      method: 'post',
      data,
    });
  },
  //设置角色特殊权限
  SaveRoleSpecificPermission(data?: any) {
    return request({
      url: '/api/SystemManage/SaveRoleSpecificPermission',
      method: 'post',
      data,
    });
  },
  //根据角色获取权限数据
  GetAccessDataBySystemRole(data?: any) {
    return request({
      url: '/api/SystemManage/GetAccessDataBySystemRole',
      method: 'post',
      data,
    });
  },
  //确认配置角色权限
  SureConfigRolesPermission(data?: any) {
    return request({
      url: '/api/SystemManage/SureConfigRolesPermission',
      method: 'post',
      data,
    });
  },
  //心跳接口
  GetNewAuthenticationToken(data?: any) {
    return request({
      url: '/api/SystemManage/GetNewAuthenticationToken',
      method: 'post',
      data,
    });
  },
};
export default api;
